package org.mics.organization.repository;

import java.util.List;

import org.mics.jpa.repository.BaseRepository;
import org.mics.organization.entity.DepartmentDO;
import org.springframework.stereotype.Repository;

/**
 * 部门
 * @author mics
 * @date 2023-9-22
 * @version  1.0
 */
@Repository
public interface DepartmentRepository extends BaseRepository<DepartmentDO>{

	/**
	 * 根据名称查询
	 * @author mics
	 * @date 2023-10-16
	 * @version  1.0
	 * @param name 名称
	 * @return 部门列表
	 */
	List<DepartmentDO> findByNameLike(String name);

}
